@extends('admin/layout')
@section('title','订单状态管理')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
  <h1>
    订单状态
    <small>编辑订单状态</small>
  </h1>
  <ol class="breadcrumb">
  	<li><a href="{{asset('admin/index')}}"><i class="fa fa-th"></i> 管理首页</a></li>
    <li><i class="fa fa-users"></i> 订单状态管理</li>
    <li><a href="{{asset('admin/member')}}"><i class="fa fa-user"></i> 编辑订单状态</a></li>
    <li class="active">编辑订单状态</li>
  </ol>
</section>

<!-- Main content -->
<section class="content">
	<div class="row">
  
		<div class="col-md-12">
	  	  <!-- box start -->
          <div class="box box-info">
	        <div class="box-header with-border">
	          <h3 class="box-title"><i class="fa fa-user-plus"> 编辑订单状态</i></h3>
	        </div>
            <!-- form start -->
            <form class="form-horizontal" action="{{asset('admin/order/update')}}" method="post" enctype="multipart/form-data">
              {{csrf_field()}}
              <input type="hidden" name="order_id" value="{{$data->order_id}}">
              <div class="box-body">
                <div class="form-group">
                  <label for="inputname" class="col-sm-2 col-md-2 control-label">运单编号：</label>
                  <div class="col-sm-6 col-md-5">
                    <input type="text" class="form-control" value="" name="waybill_code" placeholder="">
                  </div>
                  <span class="help-block col-sm-4 col-md-5">
                  </span>
                </div>
                <div class="form-group">
                  <label for="inputname" class="col-sm-2 col-md-2 control-label">订单状态：</label>
                  <div class="col-sm-6 col-md-5">
                    <select name="ord_state" class="form-control"><option 
                    @if($data->ord_state == 2) 
                      selected
                    @elseif($data->ord_state == 3)
                      disabled
                    @endif
                    value="2" >
                已付款待发货
            </option>
            <option value="3"
              @if($data->ord_state == 3) 
                selected ="selected"
              @endif>   
                已发货
            </option>
            <option value="4" disabled="disabled" >
                已收货
            
            </option></select>
                  </div>
                      <span></span> 
                  </span>
                </div> 
              
              <div class="box-footer">
                <button class="btn btn-default col-sm-2 col-sm-offset-2 col-md-2 col-md-offset-2">清空</button>
                <button class="btn btn-info col-xs-offset-1 col-sm-2 col-sm-offset-1 col-md-2 col-md-offset-1">提交</button>
              </div>
            </form>
            <!-- /.form -->
          </div>
          <!-- /.box -->
	    </div>
    </div>
</section>
<!-- /.content -->
@stop